import request from "@/util/req";

type proType = {
    code:string,
    message:string,
    data:[
        {
            banners:[
                string
            ],
            proid:string,
            category:string,
            brand:string,
            proname:string,
            originprice:number,
            sales:number,
            stock:number,
            desc:string,
            issale:number,
            isrecommend:number,
            discount:number,
            isseckill:number,
            img1:string,
            img2:string,
            img3:string,
            img4:string,
        }
    ]
}

// 获取商品数据
export function proLimit(count:number,limitNum:number){
    return request.get('pro/list',{
        params:{
            count,
            limitNum
        }
    })
}


export function getMSData(count:number){
    return request.get("pro/seckilllist",{
        params:{
            count,
            limitNum:4
        }
    })
}
